package BookTest;

public class A6Pool {
     private static int water =0;

     public A6Pool(){}
    public A6Pool(int water){
         this.water = water;
    }
    public void setWater(int water) {
        this.water = water;
    }
    public int getWater() {
        return water;
    }
     public static void DischargeWater(){
          water = water -2;
         System.out.println("排出2个单位的水量,一共有"+ water+"个单位的水量");
     }

    public static void IntoWater(){
        water =water +3;
        System.out.println("注入3个单位的水量一共有"+ water+"个单位的水量");
    }
}
